Optimal. Leaf size=45 \[ \frac {1}{12} b c x^4+\frac {1}{6} x^6 \left (a+b \tanh ^{-1}\left (\frac {c}{x^2}\right )\right )+\frac {1}{12} b c^3 \log \left (c^2-x^4\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 45, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {6037, 269, 272,
45} \begin {gather*} \frac {1}{6} x^6 \left (a+b \tanh ^{-1}\left (\frac {c}{x^2}\right )\right )+\frac {1}{12} b c^3 \log \left (c^2-x^4\right )+\frac {1}{12} b c x^4 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 269
Rule 272
Rule 6037
Rubi steps
\begin {align*} \int x^5 \left (a+b \tanh ^{-1}\left (\frac {c}{x^2}\right )\right ) \, dx &=\frac {1}{6} x^6 \left (a+b \tanh ^{-1}\left (\frac {c}{x^2}\right )\right )+\frac {1}{3} (b c) \int \frac {x^3}{1-\frac {c^2}{x^4}} \, dx\\ &=\frac {1}{6} x^6 \left (a+b \tanh ^{-1}\left (\frac {c}{x^2}\right )\right )+\frac {1}{3} (b c) \int \frac {x^7}{-c^2+x^4} \, dx\\ &=\frac {1}{6} x^6 \left (a+b \tanh ^{-1}\left (\frac {c}{x^2}\right )\right )+\frac {1}{12} (b c) \text {Subst}\left (\int \frac {x}{-c^2+x} \, dx,x,x^4\right )\\ &=\frac {1}{6} x^6 \left (a+b \tanh ^{-1}\left (\frac {c}{x^2}\right )\right )+\frac {1}{12} (b c) \text {Subst}\left (\int \left (1-\frac {c^2}{c^2-x}\right ) \, dx,x,x^4\right )\\ &=\frac {1}{12} b c x^4+\frac {1}{6} x^6 \left (a+b \tanh ^{-1}\left (\frac {c}{x^2}\right )\right )+\frac {1}{12} b c^3 \log \left (c^2-x^4\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 50, normalized size = 1.11 \begin {gather*} \frac {1}{12} b c x^4+\frac {a x^6}{6}+\frac {1}{6} b x^6 \tanh ^{-1}\left (\frac {c}{x^2}\right )+\frac {1}{12} b c^3 \log \left (-c^2+x^4\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.39, size = 65, normalized size = 1.44
method | result | size |
derivativedivides | \(\frac {x^{6} a}{6}+\frac {b \,x^{6} \arctanh \left (\frac {c}{x^{2}}\right )}{6}+\frac {b c \,x^{4}}{12}-\frac {b \,c^{3} \ln \left (\frac {1}{x}\right )}{3}+\frac {b \,c^{3} \ln \left (1+\frac {c}{x^{2}}\right )}{12}+\frac {b \,c^{3} \ln \left (\frac {c}{x^{2}}-1\right )}{12}\) | \(65\) |
default | \(\frac {x^{6} a}{6}+\frac {b \,x^{6} \arctanh \left (\frac {c}{x^{2}}\right )}{6}+\frac {b c \,x^{4}}{12}-\frac {b \,c^{3} \ln \left (\frac {1}{x}\right )}{3}+\frac {b \,c^{3} \ln \left (1+\frac {c}{x^{2}}\right )}{12}+\frac {b \,c^{3} \ln \left (\frac {c}{x^{2}}-1\right )}{12}\) | \(65\) |
risch | \(\frac {x^{6} b \ln \left (x^{2}+c \right )}{12}-\frac {x^{6} b \ln \left (-x^{2}+c \right )}{12}-\frac {i \pi b \,x^{6} \mathrm {csgn}\left (\frac {i \left (-x^{2}+c \right )}{x^{2}}\right )^{3}}{24}+\frac {i \pi b \,x^{6} \mathrm {csgn}\left (i \left (x^{2}+c \right )\right ) \mathrm {csgn}\left (\frac {i \left (x^{2}+c \right )}{x^{2}}\right )^{2}}{24}-\frac {i \pi b \,x^{6} \mathrm {csgn}\left (\frac {i}{x^{2}}\right ) \mathrm {csgn}\left (i \left (x^{2}+c \right )\right ) \mathrm {csgn}\left (\frac {i \left (x^{2}+c \right )}{x^{2}}\right )}{24}+\frac {i \pi b \,x^{6} \mathrm {csgn}\left (\frac {i \left (-x^{2}+c \right )}{x^{2}}\right )^{2}}{12}-\frac {i \pi b \,x^{6} \mathrm {csgn}\left (\frac {i}{x^{2}}\right ) \mathrm {csgn}\left (\frac {i \left (-x^{2}+c \right )}{x^{2}}\right )^{2}}{24}-\frac {i \pi b \,x^{6} \mathrm {csgn}\left (i \left (-x^{2}+c \right )\right ) \mathrm {csgn}\left (\frac {i \left (-x^{2}+c \right )}{x^{2}}\right )^{2}}{24}+\frac {i \pi b \,x^{6} \mathrm {csgn}\left (\frac {i}{x^{2}}\right ) \mathrm {csgn}\left (\frac {i \left (x^{2}+c \right )}{x^{2}}\right )^{2}}{24}+\frac {i \pi b \,x^{6} \mathrm {csgn}\left (\frac {i}{x^{2}}\right ) \mathrm {csgn}\left (i \left (-x^{2}+c \right )\right ) \mathrm {csgn}\left (\frac {i \left (-x^{2}+c \right )}{x^{2}}\right )}{24}-\frac {i \pi b \,x^{6}}{12}-\frac {i \pi b \,x^{6} \mathrm {csgn}\left (\frac {i \left (x^{2}+c \right )}{x^{2}}\right )^{3}}{24}+\frac {x^{6} a}{6}+\frac {b c \,x^{4}}{12}+\frac {b \,c^{3} \ln \left (x^{4}-c^{2}\right )}{12}\) | \(337\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.25, size = 42, normalized size = 0.93 \begin {gather*} \frac {1}{6} \, a x^{6} + \frac {1}{12} \, {\left (2 \, x^{6} \operatorname {artanh}\left (\frac {c}{x^{2}}\right ) + {\left (x^{4} + c^{2} \log \left (x^{4} - c^{2}\right )\right )} c\right )} b \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.34, size = 52, normalized size = 1.16 \begin {gather*} \frac {1}{12} \, b x^{6} \log \left (\frac {x^{2} + c}{x^{2} - c}\right ) + \frac {1}{6} \, a x^{6} + \frac {1}{12} \, b c x^{4} + \frac {1}{12} \, b c^{3} \log \left (x^{4} - c^{2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 75 vs.
\(2 (37) = 74\).
time = 2.26, size = 75, normalized size = 1.67 \begin {gather*} \frac {a x^{6}}{6} + \frac {b c^{3} \log {\left (x - \sqrt {- c} \right )}}{6} + \frac {b c^{3} \log {\left (x + \sqrt {- c} \right )}}{6} - \frac {b c^{3} \operatorname {atanh}{\left (\frac {c}{x^{2}} \right )}}{6} + \frac {b c x^{4}}{12} + \frac {b x^{6} \operatorname {atanh}{\left (\frac {c}{x^{2}} \right )}}{6} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.42, size = 52, normalized size = 1.16 \begin {gather*} \frac {1}{12} \, b x^{6} \log \left (\frac {x^{2} + c}{x^{2} - c}\right ) + \frac {1}{6} \, a x^{6} + \frac {1}{12} \, b c x^{4} + \frac {1}{12} \, b c^{3} \log \left (x^{4} - c^{2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.81, size = 56, normalized size = 1.24 \begin {gather*} \frac {a\,x^6}{6}+\frac {b\,c^3\,\ln \left (x^4-c^2\right )}{12}+\frac {b\,x^6\,\ln \left (x^2+c\right )}{12}+\frac {b\,c\,x^4}{12}-\frac {b\,x^6\,\ln \left (x^2-c\right )}{12} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________